package head.first.model.state.demo2;

/**
 * Created by yiyongyao on 2018/2/27.
 * <p/>
 * 糖果机的相关动作可以改变糖果机的状态
 */
public interface State {

    //投入分币
    void insertQuarter(GumballMachine gumballMachine);

    //回弹分币
    void ejectQuarter(GumballMachine gumballMachine);

    //转动曲柄
    void turnCrank(GumballMachine gumballMachine);

    //发放糖果
    void dispence(GumballMachine gumballMachine);
}

